
#ifndef USE_COMSAT_H_
#define USE_COMSAT_H_

#include "Behavior.h"
#include <BWAPI.h>

class UseComsat : public Behavior
{
public:
	UseComsat(std::string incName = "UseComsat")	:	target(0,0),
														lastUsed(0),
														frameInterval(100)
	{ }
	
	void Enter();
	void Execute();
	void Exit();

	bool CheckConditions();

private:
	BWAPI::Unit* tower;
	BWAPI::Position target;
	unsigned int lastUsed;
	const unsigned int frameInterval;

};

#endif